package com.lsh.oms.core.dao.other;

import com.lsh.oms.core.dao.MyBatisRepository;
import com.lsh.oms.core.model.order.OrderSignDetail;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author peter
 */
@MyBatisRepository
public interface OrderSignDetailMapper {

    int deleteByPrimaryKey(Long id);

    int insertSelective(OrderSignDetail record);

    OrderSignDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderSignDetail record);

    int updateByTmsId(OrderSignDetail record);

    List<OrderSignDetail> selectByReceiptOrderId(Long receiptOrderId);

    List<OrderSignDetail> findDetailList(@Param("receipt_order_ids") Collection<Long> receiptOrderIds);

    List<Map<String, Object>> findOrderSignItemsByReceiptOrderId(@Param("receipt_order_id") Long receiptOrderId);
}